package com.byjh.app.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.byjh.app.mapper.QuestionRecordsMapper;
import com.byjh.app.domain.QuestionRecords;
import com.byjh.app.service.IQuestionRecordsService;

/**
 * 用户刷题记录Service业务层处理
 * 
 * @author Dhq
 * @date 2025-03-06
 */
@Service
public class QuestionRecordsServiceImpl implements IQuestionRecordsService 
{
    @Autowired
    private QuestionRecordsMapper questionRecordsMapper;

    /**
     * 查询用户刷题记录
     * 
     * @param id 用户刷题记录主键
     * @return 用户刷题记录
     */
    @Override
    public QuestionRecords selectQuestionRecordsById(Long id)
    {
        return questionRecordsMapper.selectQuestionRecordsById(id);
    }

    /**
     * 查询用户刷题记录列表
     * 
     * @param questionRecords 用户刷题记录
     * @return 用户刷题记录
     */
    @Override
    public List<QuestionRecords> selectQuestionRecordsList(QuestionRecords questionRecords)
    {
        return questionRecordsMapper.selectQuestionRecordsList(questionRecords);
    }

    /**
     * 新增用户刷题记录
     * 
     * @param questionRecords 用户刷题记录
     * @return 结果
     */
    @Override
    public int insertQuestionRecords(QuestionRecords questionRecords)
    {
        return questionRecordsMapper.insertQuestionRecords(questionRecords);
    }


}
